<!DOCTYPE html>
<html>
<head>

    <script type="text/javascript">

        function DoWork() {
            document.getElementById("myid").innerText = "Ciao";
            try {
                var currentUrl = chrome.extension.getBackgroundPage().currentUrl;
                //alert("currentUrl = " + currentUrl);
                //alert("other activities...");
                alert("end");
            } catch (e) {
                alert("Error: " + e);
            }
        }
    </script>

</head>
<body>
    <style>
        body
        {
            width: 300px;
        }
    </style>
    This is a test (2)<br />
    <div onclick="DoWork()">
        DOWORK!</div>
    <div id="myid">
        ...</div>

    

</body>
